package training02;

public class Soldier extends Role{
    public Soldier() {
    }

    public Soldier(String name, int level) {
        super(name, level);
    }
    public void intro(){
        System.out.println("我是士兵\n");
        super.intro();
    }
    public void defend(Attack attackService){
        System.out.println("我抵抗了" + attackService + "的攻击");
    }
}
